package com.training.java.core.mutability;

public class Bicycle {

	private String Color;
	private String Make;
	private String Model;
	private int gear;
	private int speed;

	public String getColor() {
		return Color;
	}

	public void setColor(String color) {
		Color = color;
	}

	public String getMake() {
		return Make;
	}

	public void setMake(String make) {
		Make = make;
	}

	public String getModel() {
		return Model;
	}

	public void setModel(String model) {
		Model = model;
	}

	public int getGear() {
		return gear;
	}

	public void setGear(int gear) {
		this.gear = gear;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public void applybreak()
	{
		gear=0;
		speed=0;
		System.out.println("Car Is Stoped");
		System.out.println("Gear = "+gear);
		System.out.println("Speed = "+speed);
	}
}
